package lumis.util.security.acl.serialization;

import java.util.ArrayList;
import java.util.List;

import lumis.portal.group.serialization.GroupMemberSerializableConfig;

/**
 * Serializable value object for Acl structure properties
 *
 * @version $Revision: 9198 $ $Date: 2008-05-05 16:47:48 -0300 (Mon, 05 May 2008) $
 * @since 4.0.7
 */
public class AccessControlListSerializableConfig
{
	public static enum AclType
	{
		CHANNEL, PAGE, GROUP, SERVICE_INSTANCE
	}
	
	private String id;
	private AclType type;
	private String aclForObjectId;
	
	private List<AccessControlListEntrySerializableConfig> entries = new ArrayList<AccessControlListEntrySerializableConfig>();
	public String getId()
	{
		return id;
	}
	public void setId(String id)
	{
		this.id = id;
	}
	public List<AccessControlListEntrySerializableConfig> getEntries()
	{
		return entries;
	}
	public AclType getType()
	{
		return type;
	}
	public void setType(AclType type)
	{
		this.type = type;
	}
	public String getAclForObjectId()
	{
		return aclForObjectId;
	}
	public void setAclForObjectId(String aclForObjectId)
	{
		this.aclForObjectId = aclForObjectId;
	}
}
